package com.zq.configclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhouquan on 2018/1/31.
 */
@RestController
@RefreshScope
public class ZqRefresfController {
    @Value("${info.profile}")
    private String appName;

    @RequestMapping("/info")
    public String getAppName() {
        return appName;
    }
}
